package com.example.demo.ctrl;

//import com.example.demo.MongoDB;
import com.github.llyb120.json.Arr;
import com.github.llyb120.json.Json;
import com.github.llyb120.namilite.NamiBaseController;
import com.github.llyb120.namilite.boost.OnlySu;
import com.github.llyb120.namilite.boost.UnLogin;


import static com.example.demo.Tool.*;
import static com.github.llyb120.json.Json.bo;
import static com.github.llyb120.json.Json.o;
//import com.mongodb.client.MongoDatabase;
import com.mongodb.client.MongoClient;
import com.mongodb.client.MongoDatabase;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

@UnLogin
public class a extends NamiBaseController {


//    @OnlySu
    public Object test(){
        return db.getCollection("user").find().limit(10).into(Json.a());

    }

    public Object sss(){
        return o("ssssss","sssss");
    }
}
